﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/head.jsp" %>

<div class="right">
    <div class="location">
        <strong>当前位置:</strong>
        <span>用户管理页面 >> 用户添加页面</span>
    </div>
    <div class="supplierAdd">
        <form id="userForm" name="userForm" enctype="multipart/form-data" method="post" action="${pageContext.request.contextPath }/sys/admin/add">
            <!--div的class 为error是验证错误，ok是验证成功-->
            <input type="text" name="id" value="${admin.id}" hidden>
            <div>
                <label for="realName">真实姓名：</label>
                <input type="text" name="realName" id="realName" value="${admin.realName}">
                <!-- 放置提示信息 -->
                <font color="red"></font>
            </div>
            <div>
                <label for="adminName">账号：</label>
                <input type="text" name="adminName" id="adminName"  value="${admin.adminName}">
                <!-- 放置提示信息 -->
                <font color="red"></font>
            </div>
            <div>
                <label for="adminPwd">密码：</label>
                <input type="password" name="adminPwd" id="adminPwd" value="${admin.adminPwd}">
                <font color="red"></font>
            </div>
            <div>
                <label >性别：</label>
                <select name="sex" id="sex">
                    <option value="1" selected="selected">女</option>
                    <option value="2">男</option>
                </select>
            </div>
            <div>
                <label for="telephone">手机号码：</label>
                <input type="text" name="telephone" id="telephone" value="${admin.telephone}">
                <font color="red"></font>
            </div>
            <div>
                <label for="email">邮箱：</label>
                <input name="email" id="email" value="${admin.email}">
            </div>
            <div>
                <label for="birthday">出生日期：</label>
                <input type="date" name="birthday" id="birthday" value="${admin.birthday}">
            </div>
            <div>
                <label for="remark">简介：</label>
                <input type="text" name="remark" id="remark" value="${admin.remark}">
            </div>
            <div>
                <label for="workPic">照片：</label>
                <input type="file" name="workPic" id="workPic"/>
                <font color="red"></font>
            </div>
            <div class="supplierAddBtn">
                <input type="button" name="add" id="add" value="保存" >
                <input type="button" id="back" name="back" value="返回" >
            </div>
        </form>
    </div>
</div>
</section>
<%@include file="/WEB-INF/jsp/common/foot.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath }/statics/js/admin/add.js"></script>
